package com.basics.channel.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.basics.api.response.channel.CommentListData;
import com.basics.api.response.channel.PostCommentListData;
import com.basics.channel.entity.CyChannelComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 帖子评论 Mapper 接口
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyChannelCommentMapper extends BaseMapper<CyChannelComment> {


    List<CommentListData> selectPostCommentList(Long postId);

    IPage<PostCommentListData> selectCommentList(Page page, @Param("postId")Long postId
            , @Param("userId")Long userId,@Param("commentType")Integer commentType,
                                                 @Param("parentId")String parentId);
}
